package main

import (
	"fmt"
	"strconv"
)

func main() {
	x := 123

	fmt.Println(strconv.Itoa(x))

	fmt.Println(strconv.FormatInt(int64(x), 2))

	fmt.Println(strconv.FormatUint(uint64(x), 2))

	z, _ := strconv.Atoi("123") // x is an int
	fmt.Println(z)

	y, _ := strconv.ParseInt("123", 10, 64) // base 10, up to 64 bits
	fmt.Println(y)

}
